package com.yc.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.yc.framework.baseClass.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 公告
 * </p>
 *
 * @author 1850140986@qq.com
 * @since 2022-12-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName("t_book_tv")

public class BookTv extends BaseEntity<BookTv>{
    private static final long serialVersionUID = 1L;

    /**
     * 公告ID
     */
    @TableId(value = "tv_id", type = IdType.AUTO)
    private Integer tvId;

    /**
     * 管理员ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 标题
     */
    @TableField("tv_title")
    private String tvTitle;

    /**
     * 详情
     */
    @TableField("message")
    private String message;

    /**
     * 公告类型
     */
    @TableField("tv_type")
    private Integer tvType;

    /**
     * 图片地址
     */
    @TableField("img_addr")
    private String imgAddr;



}